#include "debug.h"
#include "print.h"
#include "interrupt.h"

void panic_spin(char* filename,	       \
	        int line,	       \
		const char* func,      \
		const char* condition) \
{
	intr_disable();

	print_string("\n\n\n!!!!! error !!!!!\n");

	print_string("filename:");
	print_string(filename);
	print_string("\n");

	print_string("line:0x");
	print_hex(line);
	print_string("\n");

	print_string("function:");
	print_string((char*)func);
	print_string("\n");

	print_string("condition:");
	print_string((char*)condition);
	print_string("\n");

	while(1);
}
